< previous page page_50 next page >

Page 50
Properties Common to Forms and Most Controls
Once you start to use forms and controls, youll find that they have many different properties. However, they also have several properties in common. Youll by no means be setting all of these propertiesmost of them you leave at their default values. Table 3.2 is a list of those properties youll find in common among forms and controls.
Table 3.2 Common Form and Control Properties.
PropertyDescription
BackColorThis property is used to change the background color of a control or form. If youll be changing colors, try to use only the system colors. If you hard-code a color into a control, it may conflict with the users colors they set up in their Control Panel.
FontThis property is used to change the appearance of the text of a particular control.
ForeColorThis property is used to change the foreground color of a control or form. Use the same care when setting this property as you do with BackColor.
HeightIndicates the height of the control.
LeftIndicates the left-most point of the control.
NameIdentifies the name of the control.
TagProvides a user-definable slot for you to put in whatever text you might want. I might use this for keeping track of the last time a user clicked on a control, or maybe whether the control has been edited.
TopIndicates the top-most point of the control.
VisibleIndicates whether the control is visible.
WidthIndicates the width of the control.

Now that youve learned about many of the different properties youll use on forms and controls, lets look at the most commonly used controls.

 
< previous page page_50 next page >

If you like this book, buy it!